<div class="funcionarios form">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Editar Funcionário'); ?></h1>
			</div>
		</div>
	</div>



	<div class="row">
		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Ações</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">

								<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Deletar Funcionário'), array('action' => 'delete', $this->Form->value('Funcionario.id')), array('escape' => false), __('Are you sure you want to delete # %s?', $this->Form->value('Funcionario.id'))); ?></li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Listar Funcionários'), array('action' => 'index'), array('escape' => false)); ?></li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Listar Cargos'), array('controller' => 'cargos', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Novo Cargo'), array('controller' => 'cargos', 'action' => 'add'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Caixa'), array('controller' => 'caixas', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Nova entrada no Caixa'), array('controller' => 'caixas', 'action' => 'add'), array('escape' => false)); ?> </li>
							</ul>
						</div>
					</div>
				</div>			
		</div><!-- end col md 3 -->
		<div class="col-md-9">
			<?php echo $this->Form->create('Funcionario', array('role' => 'form')); ?>
				<?php echo $this->Form->input('Funcionario.id');?>
				<div class="panel panel-default">
				<h3 class="col-md-12">Funcionário</h3>
				<div class="panel-body">
					<div class="row">
						<div class="form-group col-md-12">
							<?php echo $this->Form->input('Funcionario.nome', array('label' => 'Nome do Funcionário','class' => 'form-control', 'placeholder' => 'Nome do Funcionário'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Funcionario.cpf', array( 'class' => 'form-control', 'placeholder' => 'Cpf'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Funcionario.rg', array( 'class' => 'form-control', 'placeholder' => 'Rg'));?>
						</div>
							<div class="form-group col-md-6">
								<?php echo $this->Form->input('Funcionario.email', array('class' => 'form-control', 'placeholder' => 'Email'));?>
							</div>
						</div>
					<div class="row">
						<div class="form-group col-md-3">
							<?php echo $this->Form->label('Funcionario.data_nasc', 'Data de Nascimento');?>
							<?php echo $this->Form->text('Funcionario.data_nasc', array('type' => 'date', 'label' => 'Data de Nascimento', 'dateFormat' => 'DMY', 'minYear' => date(1900), 'maxYear' => date('Y'),  'class' => 'form-control col-sm-2', 'placeholder' => 'Data Nasc'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Funcionario.telefone', array('class' => 'form-control', 'placeholder' => 'Telefone'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Funcionario.celular', array('class' => 'form-control', 'placeholder' => 'Celular'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Funcionario.sexo', array('options' => array('Masculino' => 'Masculino', 'Feminino' => 'Feminino'), 'class' => 'form-control', 'placeholder' => 'Sexo'));?>
						</div>
					</div>
				
				<!-- <div class="form-group">
					<?php echo $this->Form->input('Funcionario.status', array('type'=> 'hidden', 'value' => '1', 'class' => 'form-control', 'placeholder' => 'Status'));?>
				</div>-->
					<div class="row">
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Funcionario.estado_civil_id', array('class' => 'form-control', 'placeholder' => 'Estado Civil Id'));?>
						</div>
						<div class="form-group col-md-7">
							<?php echo $this->Form->input('Funcionario.cargo_id', array('class' => 'form-control', 'placeholder' => 'Cargo Id'));?>
						</div>
					</div>
				</div> <!-- fim div painel-body  -->
				</div> <!-- fim div painel -->
				<div class="form-group">
					<?php echo $this->Form->input('Funcionario.endereco_id', array( 'type' => 'hidden', 'class' => 'form-control', 'placeholder' => 'Endereco Id'));?>
				</div>
				<?php echo $this->Form->input('Endereco.id');?>
				<div class="panel panel-default">
				<h3 class="col-md-12">Endereço</h3>
				<div class="panel-body">
					<div class="row">
						<div class="form-group col-md-10">
							<?php echo $this->Form->input('Endereco.rua', array('class' => 'form-control', 'placeholder' => 'Ex: Rua Gonçalves Faustino'));?>
						</div>
						<div class="form-group col-md-2">
							<?php echo $this->Form->input('Endereco.numero', array('class' => 'form-control', 'placeholder' => 'número'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-8">
							<?php echo $this->Form->input('Endereco.bairro', array('class' => 'form-control', 'placeholder' => 'bairro'));?>
						</div>
						<div class="form-group col-md-4">
							<?php echo $this->Form->input('Endereco.cep', array('class' => 'form-control', 'placeholder' => 'cep ex: 79370-000'));?>
						</div>
						
					</div>
					<div class="row">
						<div class="form-group col-md-6">
							<?php echo $this->Form->input('Endereco.complemento', array('class' => 'form-control', 'placeholder' => 'complemento'));?>
						</div>
						<div class="form-group col-md-6">
							<?php echo $this->Form->input('Endereco.cidade_id', array('class' => 'form-control'));?>
						</div>
					</div>
				</div>
			</div>
				<div class="form-group">
					<?php echo $this->Form->submit(__('Salvar'), array('class' => 'btn btn-default')); ?>
				</div>

			<?php echo $this->Form->end() ?>

		</div><!-- end col md 12 -->
	</div><!-- end row -->
</div>
